#define _CRT_SECURE_NO_WARNINGS 1
#include"SList.h"

void test01()
{
	//SLTNode* node1 = (SLTNode*)malloc(sizeof(SLTNode));
	//SLTNode* node2 = (SLTNode*)malloc(sizeof(SLTNode));
	//SLTNode* node3 = (SLTNode*)malloc(sizeof(SLTNode));
	//SLTNode* node4 = (SLTNode*)malloc(sizeof(SLTNode));
	//node1->data = 1;
	//node2->data = 2;
	//node3->data = 3;
	//node4->data = 4;
	//node1->next = node2;
	//node2->next = node3;
	//node3->next = node4;
	//node4->next = NULL;
	//SLTNode* plist = node1;
	//SLPrint(plist);
	SLTNode* plist = NULL;
	SLPushBack(&plist, 1);
	SLPrint(plist);
	SLPushFront(&plist, 2);
	SLPrint(plist);
	SLPushFront(&plist, 3);
	SLPrint(plist);
	SLPopBack(&plist);
	SLPrint(plist);
	SLPopFront(&plist);
	SLPrint(plist);

	//SLTNode* find = SLTFind(plist, 3);
	//SLTInsert(&plist, find, 99);
	//SLPrint(plist);
	//SLTInsert(&plist, find, 100);
	//SLPrint(plist);
	//SLTInsertAfter(find, 100);
	//SLPrint(plist);
}

int main()
{
	test01();
	return 0;
}
